<?php

use Illuminate\Database\Seeder;

class CommentSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        DB::table('comments')->delete();
        
        for ($i=0; $i < 10; $i++) {
            \App\Comment::create([
            'user_id'   => 1,
            'article_id'=>1,
            'root_id'=>1,
            'body'    => 'BodyBodyBodyBodyBodyBodyBodyBodyBodyBodyBodyBodyBodyBody '.$i,
            ]);
        }
    }
}
